Fixed sleeping in beds while morphed. Closes #611. Closes #620.