Export pure, safe and property to json

This information was previously exported,  before recent changes to `func.c`. I rely on it so it'd be nice to have it back, was it removed on purpose?

I'm not familiar with the codebase, but the tests I ran still pass after the change. Note that I'm only setting the flags which are ostensibly missing for my use-case, there might be other interesting ones I haven't noticed.