Fixed handling of explicit usages and usage ranges. Also fixed generation of camelcase field names.