Bug fix: correctly select checkboxes when from a linkTable
Little better code for handling expandable when all fields are visible
(It now takes hidden fields into account)