port parsing tests from the Java Soy project, fix some small behavioral differences