init implementation of optionsArg annotation
refactor: use the same way to detect annotation as core impl (data annotation) does