Bugfix in o_error() macro
More elmentBuffer stuff plus unit tests