updated license year
fixed registration of tests and functions as anonymous functions (closes #946)
fixed tests on PHP 5.2
fixed tests on PHP 5.2