Fixes a bug in raw class value checking, and fixes some ugly-ass logging