[#7] Added a type constraint to BaseValidator so it only applies to reference types + cleared up some leftover code