Adding typesToTreatAsOpaque option

Also updating the Travis CI configuration to not deploy for pull requests