fix toScala in EntityPath and Ref; quotes missing
fix examples to comply with new ! Ref syntax
add constraints Diff2, Distance; add Rectangle