make note source ids an empty array instead of "null" in api (fixes #123).