fixed minor issues with new note iterator * fixed style issues * use new iterator functions for git_note_foreach()