tracer: improved inner model structure caching (#3)

- caching resource types structure in inner tracer class
- introducing ValueType enums for checking parameter type