Please try to use AttachedBeams, since you are about to invoke a property (section shape) that is available for beams only, while AtttachedPart means plates too.
As far as I know, you should use ProfTypeX = 8 for T shapes.
If you want to check if the AttachedBeam does its job properly in conjunction with a filter, you can check it with an existing predefined filter (e.g. profile angle).
Unfortunately I can't provide you more insights about those inconsistencies that you are saying. I can only speculate that one of the reasons can be what Christian mentioned, regarding how the objects are organized at code level. We've recently started to leverage usage of these filters (couple of years ago) by providing some out of the box ones, that allowed to accomplish additional requirements for detailing. I perfectly understand although that there is room for much more in here.
I'm not a specialist within this domain, but I guess that API documentation can provide some clues on these code hierarchies.
I've mainly shared with you this behavior as from user perspective, in order to narrow down your attempts, being aware that it can be very time and energy consuming.