rename file
tweak stdclass/json_encode behaviour and more tests