MDL-60681 lib/tablelib.php: Make flexible_table class better extendable