core: fix type detection for method arguments
core: fix links for fields in nested classes
tests: reformat code
fix code style issues