[ticket/416] Also use array mapping for string to constant conversion

B3P-416