serialize and unserialize recid and modid in AbstractEntity

based on these comments: https://github.com/soliantconsulting/SimpleFM_FMServer_Sample/pull/6#discussion_r3217021