support for new singleton_allocator

Sometime only one instance of class is required (eg for messaging) and
the allocator will always return the same block of memory.
The function table had to be modified to add the class specific
allocator.
fixed problem in new code