MDict: minor parser refactor, fix inappropriate use of sptr