1. finish reference counting in declaration statement
2. finish reference counting in the end of scope