[cml] Add more checks on identifiers

In both CM and CML:
- Check length
- Check patterns

CF-277 #done

TESTED=./out/x64/host_x64/cmc_bin_test

Change-Id: I5a8513c93d69cc7d86e0b68ae04fecc4f385556f
3 files changed