fixed problems with None dependencies on load/save
fixed truth value of an array error
added tests for missing references