Add function inspection for literal struct

fix issue #522
Merge pull request #576 from m0sth8/struct_inspection

Add function inspection for literal struct