refactor parsing of modified types to seperate functions

parsePointer/array/function modified type