Memory_interface was inconsistent wrt xml/json

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
Merge pull request #13 from jonludlam/memory-xmlize

Memory xmlize