fixed bytes array saving
Check for null

Avoids NullPointerException
Merge pull request #41 from mikegr/patch-1

Check for null
added count methods
Merge branch 'master' of https://github.com/satyan/sugar

Conflicts:
	library/src/com/orm/SugarRecord.java