Made this refer to own object
Resolve types in parameters
Support for strings and vals without definitions in classes
Test updates