added better sparse array handling, created tab comparison tests