Fix missing $class-type

Cannot compile `v5.1.0` branch due to missing `$class-type` variable. Removed reference and replace with `.`.