[2.3] - Added ability to use an object in MODx.add