Correct module and type use
Fix use of number type
Don't use not-null type constraint on ol.Color arguments
Correct branch logic
Add note where code does not work when compiled