Improve tests on getter and setter

Make rl_tree.root a number instead of a pointer, so it can be serialized and
deserialized.

Change update/insert methods to return a status and update a value to get the
page number.

Prepare for better serialization/deserialization of pages.