Fix 2 small bugs related to passing in empty arrays to the table class

Also fixed some spelling.
Also added a test for these issues.