libsepol:cil: Fix bugs in cil_reset_ast

- There was an issue in cil_reset where elements were reset
  regardless if they were anonymous or named.
- Add reset functions for userlevel and userrange

Signed-off-by: Yuli Khodorkovskiy <ykhodorkovskiy@tresys.com>