Added constants for alert, success, info and warning.
Added array type check and NULL by default at missing places.
navs is recursive.

Signed-off-by: Guillaume Poirier-Morency <guillaumepoiriermorency@gmail.com>