Various fixes for inheritance reflection