Change log_types and valid_type functions to static

to avoid PHP 5.4+ strict standards notices. Fixes #13.