Fixed problem when calling with a result parameter that is an input parameter.
Mention the result parameter it in the doc.
Fixed getMinimumByComponent and getMaximumByComponent.
More testcases.
Refactor.