type and argument parsing improved to handle the field/vararg ambiguity; tests added