Don't set Swift list properties to nil when adding them to a Realm

(cherry picked from commit 117451efad645a5cc6f1c90749c20352eb8e9576)
fix for osx framework headers
add swift files
fixes for test cases
swift test target fixes