fix prototype extensions on array string handling