Allow matrix targets to be string or array