fix to issue #7

Tests are passing, code works as expected: rm_type_names are RM classes not Java class names.