Fixes gh-82

The problem was caused by the way the table field caching works. When the cache is unserialised it creates associative arrays instead of objects. With the small change I made, FOFTable::getTableFields now always returns an object, as it is supposed to do.