2.0 refinements and bugfixes
adding type checking of referenced Java types in bonaparte