Issues in management of local reference to jni objects fixed.
Merge pull request #487 from asmorkalov:manager_localref_fix