SF Bug #1283

Add test case for using smart pointers in conjunction with directors.

Patch Java language module to allow the use of smart pointers with directors.