ListOfListsBuilder: Add back support for MemoryObject arguments
Unfortunately !62 (merged) breaks boxtree and other projects where ListOfListBuilder is passed raw memory objects as arguments. This changes adds back that support and adds a test to exercise it.