Adding typesToTreatAsOpaque option

Also updating Travis CI configuration to prevent deploy on pull requests