Constant functions are working

Fixed problem with const functions to be drawn.
Normalization assumes 100% for constant functions.
Added selectionTypeChange request handling.