Such a reflection feature that would allow querying fields of xclasses could come handy and even solve some performance issues (see linked tickets)