Currently custom tags are not saved to a m4a file.
To offer most compatibility they should be written to the itunes metastructure `----:com.apple.iTunes:`
See discussion:Tagging script with m4a files
M4A files don't support arbitrary tag fields
Support for ReplayGain 2.0 tags
Comprehensive tag support