revise allocVector/ScalarXXX, creating allocVector1XXX
Make ScalarXXX functions inline
eliminate surplus updates, that affects merge