Added support for all store operations to resolve variable types during declaration properly; bug was leading to nullpointer in variable lookup.