Initial work on fixing PHP Strict Standards warnings

This mainly corrects using static function and bad inheritance in method
signatures of NamespacedElements
Just a general question about this?  Would it be worth creating a new repo/lib for this?