PybindUUIDTypeCaster: non-UUID elements now fail the conversion.

This commit fixes an issue where the UUIDTypeCaster was accepting
EntityRefs. When Pybind11-bound functions share the same name, they
are disambiguated by sequential calls to each of the functions. Our
typecaster for UUIDs was therefore being called with an incorrect
input type (in this case, an EntityRef). The default casting response
would have thrown a reference_cast_error, but our custom version
simply assumed that its argument was a UUID. This fix guards against
that action by checking for the existence of the "bytes" method in
UUID, catching the resulting python exception and then throwing a
reference_cast_error.
Status Job ID Name Coverage
  External
passed cdash

passed ghostflow-branch-check

passed ghostflow-commit-check

passed smtk-endor-linux-shared-relwithdebinfo+pybind11

passed smtk-junction-osx-shared-release+pybind11

failed smtk-moho-linux-shared-relwithdebinfo+pybind11

failed smtk-praxis-windows-shared-release

failed smtk-talosiv-osx-shared-release

failed smtk-endor-linux-shared-relwithdebinfo+pybind11

passed smtk-endor-linux-shared-relwithdebinfo+pybind11

00:03:54

passed smtk-endor-linux-shared-relwithdebinfo+pybind11

passed smtk-endor-linux-shared-relwithdebinfo+pybind11

passed smtk-endor-linux-shared-relwithdebinfo+pybind11

passed smtk-endor-linux-shared-relwithdebinfo+pybind11

pending smtk-endor-linux-shared-relwithdebinfo+pybind11
failed smtk-endor-linux-shared-relwithdebinfo+pybind11

failed smtk-endor-linux-shared-relwithdebinfo+pybind11

failed smtk-endor-linux-shared-relwithdebinfo+pybind11

failed smtk-endor-linux-shared-relwithdebinfo+pybind11

failed smtk-junction-osx-shared-release+pybind11

failed smtk-junction-osx-shared-release+pybind11

failed smtk-junction-osx-shared-release+pybind11

passed smtk-junction-osx-shared-release+pybind11

passed smtk-junction-osx-shared-release+pybind11

pending smtk-junction-osx-shared-release+pybind11
passed smtk-junction-osx-shared-release+pybind11

00:04:36

passed smtk-junction-osx-shared-release+pybind11

passed smtk-junction-osx-shared-release+pybind11

failed smtk-junction-osx-shared-release+pybind11

failed smtk-junction-osx-shared-release+pybind11

failed smtk-moho-linux-shared-relwithdebinfo+pybind11

failed smtk-moho-linux-shared-relwithdebinfo+pybind11

failed smtk-moho-linux-shared-relwithdebinfo+pybind11

failed smtk-moho-linux-shared-relwithdebinfo+pybind11

failed smtk-moho-linux-shared-relwithdebinfo+pybind11

failed smtk-moho-linux-shared-relwithdebinfo+pybind11

failed smtk-moho-linux-shared-relwithdebinfo+pybind11

failed smtk-moho-linux-shared-relwithdebinfo+pybind11

failed smtk-moho-linux-shared-relwithdebinfo+pybind11

failed smtk-moho-linux-shared-relwithdebinfo+pybind11

00:00:03

pending smtk-moho-linux-shared-relwithdebinfo+pybind11
failed smtk-praxis-windows-shared-release

failed smtk-praxis-windows-shared-release

failed smtk-praxis-windows-shared-release

failed smtk-praxis-windows-shared-release

failed smtk-praxis-windows-shared-release

failed smtk-praxis-windows-shared-release

pending smtk-praxis-windows-shared-release
failed smtk-praxis-windows-shared-release

failed smtk-praxis-windows-shared-release

00:08:56

failed smtk-praxis-windows-shared-release

failed smtk-praxis-windows-shared-release

failed smtk-talosiv-osx-shared-release

failed smtk-talosiv-osx-shared-release

failed smtk-talosiv-osx-shared-release

failed smtk-talosiv-osx-shared-release

failed smtk-talosiv-osx-shared-release

failed smtk-talosiv-osx-shared-release

00:05:18

failed smtk-talosiv-osx-shared-release

failed smtk-talosiv-osx-shared-release

pending smtk-talosiv-osx-shared-release
failed smtk-talosiv-osx-shared-release

failed smtk-talosiv-osx-shared-release