Typesafety library for PHP primitives