Revert "[SPARK-1552] Fix type comparison bug in mapVertices and outerJoinVertices"

This reverts commit 16d6af8ef3eb20e88452db3cca1cdc307697b1c0.
Add failing test
Use type equality constraint with default argument