bugfix - splitTables() attempted to preg_match an array. Added is_array.

Was unable to call getTables() because, internally, splitTables sent an array to be preg_match-ed.
Fix: if object is an array, just use it as is. Otherwise, send it to be matched/split/whatever.