Bugfixes in type check and validation service.