fix some 'invtriangle' leftovers
remove support for 'type' argument to scatter