Some retirement accounts have federal bankruptcy protections, but the rules vary by account type and situation.