Testing I did as of 1.23 placed PIE>AP>DEX as far as stats go, though I didn't get into the nuts and bolts of at what point AP loses to DEX and vice versa, though for most cases you're looking at one slot (hands) to either use AP or DEX, and an easy double meld (50AP) trounces a DEX double.
Izodious's spreadsheet can be tweaked to compare the finer points of DEX vs. AP and roughly fit what I found while testing.
As far as gear, it will depend on your bow as to how far you need to push melds, but ideally you'd want to look at the following and use what suits your stat caps:
Crown :: Choral Hat
Rainmaker's :: Gryphonskin ::Corselet - PIE meld (If you are just super capped on PIE and there is nothing else to change, you can use a CritAP body here as well)
Felt Bracers AP meld
Felt Gaskins :: Militia Subligar - INT/PIE meld
Caligae :: Choral Sandals ::
Explorer's Moccasins
-Emnity belt ::
Flame Sergeant's Sash :: Other GC options?
Explorer's :: Militia Earrings
Electrum+1 :: Explorer's Choker
PIE :: DEX :: Crit :: GC bracelets
PIE :: DEX rings