Allow file state to accept numerical ids

References #10640

Added functionality for file state to accept numerical ids for the user or group. Also added some quick unit tests for the changes.