Fix a bug which was causing the memory area stuff to fail.
I should probably try to be less clever and use memory area's lower bounds as the key, and do the extra work required to get that working.