Make getClass method case insensitive, fixes #5, also fixes #6