Fix for namespace checking of typed objects

A fix for the standard amfphp library to allow namespace typed objects
and a better implementation of this.