Fixed errors in code generated for certain multivalue and list combinations.
Added custom parenthesis option.