Bugfix on recognizing Long and Double classes