Properly reflect companion objects from java Classes