Fixes for better error handling by table/1 including throwing a permission error on an attempt to table static, non-tabled code.
Authored by: tswift 2010-07-31
Parent: [r6688]
Child: [r6690]