[#386] set default value to `1.0` for `setOpacity()` if the given value is out of range (e.g. Nan)
[#386] fixed regression with the collision layer not being set with a renderer  and not being added to the game world when visible