To add - for anybody determined to walk from AirTrain to the A train to avoid paying the $5 fee, this is the shortest walking route: https://goo.gl/maps/dQHSpE9y8PD2
It's a mile. I did it once, just to say I did it, without luggage. It wasn't pleasant, and I wouldn't want to do it with luggage...