Implement reference count of smart node pointer

Fix ARA* Memory Leak problem.
Ex. Use less than 10mb memory for baulders_gate_AR0602SR.bmp