test new object design in cmdline

- let the caller do the allocation (needed for inheritance)
- hide this in macros OBJNEW() and OBJDEL()