Add function inspection for literal struct

fix issue #522