add line info to more warnings (lists, tables)

- also fix some warnings and whitespace