Various fixes related to Reflection objects