Implemented more correct processing of scoped elements: factory methods should not just be altered, but rather new scope should be assigned.
Adapted code generator so that the original field is re-used (less intrusive in relation to issue #20).
* Added test case that demonstrates issue #21 to samples/jaxb2-maven-plugin.
* Implemented population of target namespace from candidate field. It helps in particular case of issue #21 when field is annotated with @XmlElement, but won't work if field is annotated with @XmlAnyElement, @XmlElementRefs, @XmlElements.
tools.jar is included into dependencies only if it is present (fixes #22), which means that on iOS tests will not work.
Fixed NPE in case when fixed-value attributes are represented as Java constants (fixes #24).