Refs #22, changes false values to null and adds better type safety in general.