Optimize isNodeType

Check mixin types for direct match before talking to the
nodetypemanager. This avoids unnecessary calls to the backend.