Fix bugs with exported varyings.
Merge pull request #767 from jbrodman/nomosoa2

Fix bugs with exported varyings.