PR for Issue #1291. Support of the custom prototype names

@rande Check please. In this case we can use real prototype name described in the field parameters, or use standard __name__.