added (f:g)-paintability

Also, changed the label list size parser to use JavaScript eval.