cosmetic changes
implement DoubleArray.getid and fix build_morp.