Chapters 3 and 5 and sections 402 through 403b, 405, 414, 452, and 453 of this title apply equally to persons who are not serving as members of a uniformed service but whose pay or allowances, or both, are assimilated under law or a regulation prescribed under law, to the pay or allowances, or both, of commissioned officers, warrant officers, or enlisted members of any grade, rank, or rating in any uniformed service.