Bug 1074863 - Handle named constructors which have DOMXrayTraits while being simultaneously JSProto_Function. r=peterv

Simple fix, but interesting test case and worth having on CI.