more obvious error message on function duplication

and fix stringizing array types