fix #45 add an isWrite option on RefTable.

try to fix #45