Set detectRetina's expected type as Boolean at code level to match docum...

...entation and usage