Add one option to constmap_init to take flagchar

Signed-off-by: Giam Teck Choon <giamteckchoon@gmail.com>