Libs/Tablehelper: Changed table.with to work with functions