some small fixes to make reflection work that came up when trying to use it in FO's codebase