Idubrov/fixes for pl

Paul's changes, necessary for the entity typeloader.

1. Allow localizing type/type info DisplayName.
2. Allow to extend of Java type info's.

See commit messages for the details.