Fix invocation type for semantic check error
Add SpatialTest.scala, layout framework for accessing spatial index