[aot] Add a 'log-instances=filename' aot option to dump a list of method instances generated to a file for statistical purposes.