The newly added tests were wrong before the fix.
The change might break existing code if it was relying
on this broken behavior.
This also starts a better separation of concern between
parse() and __leaf_to_sql.
bzr revid: vmt@openerp.com-20110810085604-1f6ahwzuzfklj1b7