Replaces arrays with lists so contains methods can be used when checking a mapping.