Implemented part/bit select on memory read
Fixed name resolution of local tasks and functions in generate block